//
//  NewsFirstCell.m
//  AnnCar_user
//
//  Created by hwd on 17/10/23.
//  Copyright © 2017年 LiBenCan. All rights reserved.
//

#import "NewsFirstCell.h"

@implementation NewsFirstCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        self.selectionStyle = 0;
    }
    return self;
}

- (void)loadCell:(NSString *)contentFirstStr SecondStr:(NSString *)contentSecondtStr
{
    //头条图片
    _touImaheV = [TomamaUI createImageView:CGRectMake(15*screenW_6,12*screenW_6,36*screenW_6, 36*screenW_6) backGroundImageV:@"main_anantoutiao"];
    [self.contentView addSubview:_touImaheV];
    
    //热门图片1
    _hotFirstImaheV = [TomamaUI createImageView:CGRectMake(CGRectGetMaxX(_touImaheV.frame)+10*screenW_6,12*screenW_6,27*screenW_6,14*screenW_6) backGroundImageV:@"main_hot"];
    [self.contentView addSubview:_hotFirstImaheV];
    
    //热门图片2
    _hotSecondImaheV = [TomamaUI createImageView:CGRectMake(CGRectGetMaxX(_touImaheV.frame)+10*screenW_6,CGRectGetMaxY(_hotFirstImaheV.frame)+6*screenW_6,27*screenW_6, 14*screenW_6) backGroundImageV:@"main_hot"];
    [self.contentView addSubview:_hotSecondImaheV];
    
    //热门标题1
    _hotFirstLab = [TomamaUI createLabel:CGRectMake(CGRectGetMaxX(_hotFirstImaheV.frame)+5*screenW_6, 10*screenW_6, SCREENW-90*screenW_6, 18*screenW_6) textAligment:0 font:[UIFont systemFontOfSize:13*screenW_6] textColor:TextBlack text:contentFirstStr];
    [self.contentView addSubview:_hotFirstLab];
    
    //热门标题2
    _hotSecondLab = [TomamaUI createLabel:CGRectMake(CGRectGetMaxX(_hotFirstImaheV.frame)+5*screenW_6,30*screenW_6, SCREENW-90*screenW_6, 18*screenW_6) textAligment:0 font:[UIFont systemFontOfSize:13*screenW_6] textColor:TextBlack text:contentSecondtStr];
    [self.contentView addSubview:_hotSecondLab];
    
}


@end
